<style type="text/css">
<!--
.STYLE1 {color: #FF3300}
.STYLE3 {color: #FFFFFF; font-weight: bold; }
.STYLE4 {color: #FF0000}
-->
</style>
      <div class="content bolr">
        <h2 class="h2">比赛<?php echo $cid;?> - <?php echo $contest_title;?><br />
        </h2>
        <div class="middle" style=" padding-top:30px;"><table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
  <?php 
  $left_right;
  if($contest_0_active == 'Y' && $user_active0 == 'Y' && $contest_1_active == 'Y' && $user_active1 == 'Y' || $is_admin)
  {
  	$left_right = 0;
  ?>
    <td align="right"><a href="<?php echo "./suanfa.php?cid=".$cid;?>" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image10','','<?php echo "./template/$BM_TEMPLATE/images/"; ?>enter03.jpg',1)"><img src="<?php echo "./template/$BM_TEMPLATE/images/"; ?>enter_03.jpg" name="Image10" width="152" height="170" border="0" id="Image10" /></a></td>
    <td align="center"><a href="<?php echo "./xiangmu.php?cid=".$cid;?>" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image11','','<?php echo "./template/$BM_TEMPLATE/images/"; ?>enter_05.jpg',1)"><img src="<?php echo "./template/$BM_TEMPLATE/images/"; ?>enter03 (1).jpg" name="Image11" width="152" height="170" border="0" id="Image11" /></a></td>
  <?php 
  }
  else if($contest_0_active == 'Y' && $user_active0 == 'Y')
  {
  	$left_right = 1;
  ?>
    <td align="center"><a href="<?php echo "./suanfa.php?cid=".$cid;?>" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image10','','<?php echo "./template/$BM_TEMPLATE/images/"; ?>enter03.jpg',1)"><img src="<?php echo "./template/$BM_TEMPLATE/images/"; ?>enter_03.jpg" name="Image10" width="152" height="170" border="0" id="Image10" /></a></td>
  <?php 
  }
  else if($contest_1_active == 'Y' && $user_active1 == 'Y')
  {
  	$left_right = 1;
  ?>
    <td align="center"><a href="<?php echo "./xiangmu.php?cid=".$cid;?>" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image11','','<?php echo "./template/$BM_TEMPLATE/images/"; ?>enter_05.jpg',1)"><img src="<?php echo "./template/$BM_TEMPLATE/images/"; ?>enter03 (1).jpg" name="Image11" width="152" height="170" border="0" id="Image11" /></a></td>
  <?php 
  }
  
  if($contest_0_active != 'Y' && $contest_1_active != 'Y')//这种情况是不会出现的，除非管理员蛋疼设置个俩都没有的比赛
  {
  ?>
  <td height="30" colspan="2" align="left"><span class="STYLE1">没有可以注册的比赛。</span></td>
  <?php
  }
  else
  {
  ?>
  	<td align="<?php echo $left_right == 0 ? "left" : "center";?>"><a href="<?php echo "./results.php?cid=".$cid;?>" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image12','','<?php echo "./template/$BM_TEMPLATE/images/"; ?>enter03 (2).jpg',1)"><img src="<?php echo "./template/$BM_TEMPLATE/images/"; ?>enter_07.jpg" name="Image12" width="152" height="170" border="0" id="Image12" /></a></td>
  <?php
  }
  ?>
  </tr>
</table>
           <!-- 显示后退（返回上层界面）链接  -->
		   <table width="50" border="0" cellpadding="0" cellspacing="1" bgcolor="#FFFFFF">
		   <tr>
		   <td width="10"><img src="<?php echo "./template/$BM_TEMPLATE/images/"; ?>04_07.jpg" width="9" height="14" /></td>
		   <td width="40"><a href="<?php echo $BM_HOME;?>"><?php echo $MSG_GOBACK;?></a></td>
		   </tr>
		   </table>
		   <!-- ***************************  -->
</div>
<div style="height:150px;"></div>
